import request from '@/utils/request'

export function getAd(name) {
  return request({
    url: '/ad/name/' + name,
    method: 'get'
  })
}
export function getAdList() {
  return request({
    url: '/ad/list',
    method: 'get'
  })
}

export function setAd(data) {
  return request({
    url: '/ad/update',
    method: 'post',
    data
  })
}
